home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / sunprom / RCS / devConfig.c,v < prev    next >
Encoding:
Text File  |  1990-09-17  |  1.6 KB  |  81 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    rab:1.1; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.09.17.11.01.50;  author rab;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/*
  26.  * devConfig.c --
  27.  *
  28.  *    Excerpts from the dev module in the kernel.
  29.  *
  30.  * Copyright 1985 Regents of the University of California
  31.  * All rights reserved.
  32.  */
  33.  
  34. #ifdef notdef
  35. static char rcsid[] = "$Header: /sprite/src/kernel/dev/sun3.md/RCS/devInit.c,v 8.3 89/05/24 07:50:56 rab Exp $ SPRITE (Berkeley)";
  36. #endif 
  37.  
  38. #include "sprite.h"
  39. #include "fsBoot.h"
  40. #include "vmSunConst.h"
  41. #include "machMon.h"
  42.  
  43.  
  44.  
  45.  
  46. /*
  47.  *----------------------------------------------------------------------
  48.  *
  49.  * Dev_Config --
  50.  *
  51.  *    Boottime device configuration.  This is a special version of this
  52.  *    routine that knows we will be using the PROM driver routines.
  53.  *
  54.  * Results:
  55.  *    None.
  56.  *
  57.  * Side effects:
  58.  *    This saves the pointer to the boot parameters in the global
  59.  *    fsDevice so that it is available to the SunPromDevOpen and
  60.  *    SunPromDevRead routines.
  61.  *
  62.  *----------------------------------------------------------------------
  63.  */
  64. void
  65. Dev_Config(paramPtr, fsDevicePtr)
  66.     MachMonBootParam *paramPtr;    /* PROM parameters */
  67.     Fs_Device *fsDevicePtr;    /* FS descriptor for the boot device */
  68. {
  69.     Mach_MonPrintf("Sprite Boot %s(%d,%d,%d)%s\n", paramPtr->devName,
  70.              paramPtr->ctlrNum, paramPtr->unitNum,
  71.              paramPtr->partNum, paramPtr->fileName);
  72.  
  73.     fsDevicePtr->serverID = -1;
  74.     fsDevicePtr->type = 0;
  75.     fsDevicePtr->unit = paramPtr->unitNum;
  76.     fsDevicePtr->data = (ClientData)paramPtr;
  77. }
  78.  
  79.  
  80. @
  81.